package Note_for_class;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 姚东名
 * Date: 2024-04-26
 * Time: 10:59
 */
public class student {
    //对象：属性 方法
    private String name;
    private String age;
    private String id;
    private String gender;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void stu() {
        System.out.println("我叫"+name+"，今年"+age+"岁, 性别是"+gender+"，学号是"+id);
    }
}
